<!-- 人脉审核 -->
<template>
  <a-card
    style="width: 100%"
    :tab-list="tabListNoTitle"
    :active-tab-key="titleKey"
    @tabChange="(key) => onTabChange(key)"
    :bordered="false" class="br-10"
  >
    <div v-if="titleKey === 'inner'">
      <TableDataInner type="inner" />
    </div>
    <div v-else-if="titleKey === 'outside'">
      <TableDataOutside type="outside" />
    </div>
  </a-card>
</template>

<script>
import TableDataInner from './components/tableData.vue'
import TableDataOutside from './components/tableData.vue'
export default {
  components: {
    TableDataInner,
    TableDataOutside,
  },
  data() {
    return {
      tabListNoTitle: [
        {
          key: 'inner',
          tab: '会内发起的',
        },
        {
          key: 'outside',
          tab: '会外申请的',
        },
      ],
      titleKey: 'inner',
    }
  },
  created() {},
  methods: {
    onTabChange(key) {
      this.titleKey = key
    },
  },
}
</script>
<style scoped lang="less">
</style>
